Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

353
Vistas
Input type "datetime-local" keep default value highlight using min attribute

I am working on a datetime picker input in Angular using the input type: "datetime-local". It works well and the input looks like that:

enter image description here

I have already set the minimum attribute to the now date and a default value according to my database.

enter image description here

Here you can see the default date value as: "21/12/2021 10:45". But opening the input the "selected" value is the minimum date as: "29/12/2021 10:45".

My question is: How can I highlight the current value and not the minimum?

My HTML input:

<input matInput formControlName="datetime" [min]="getNowDate()" type="datetime-local" [placeholder]="_input.short_gui_name | titlecase">
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda